package com.ftg.supermarket.view;

import com.ftg.supermarket.comm.ToPage;
import com.ftg.supermarket.service.UserService;

import java.io.IOException;
import java.util.Scanner;

/**
 * 登陆功能
 *
 * @author 布衣
 */
public class UILogin {

    public static void main(String[] args) throws IOException {
        System.out.println("----");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入用户名");
        String username = scanner.next();
        System.out.println("请输入密码");
        String password = scanner.next();

        UserService userService = new UserService();
        ToPage<Object> result = userService.login(username,password);

        System.out.println(result);

    }

}
